﻿using System;
using System.Windows.Forms;
using CssCommonLibrary;

namespace CSSTool
{
    public partial class Form1 : Form
    {
        CssFileController reader;
        public Form1()
        {
            InitializeComponent();
            reader = new CssFileController(@"./turkuaz.css");
            tb_CssController.Text = reader.ToString();
            reader.CssNodes.Sort();
            cssExtendedList1.DataSource = reader.CssNodes;
        }

        private void cssExtendedList1_OnCssChecked(object sender, ItemCheckEventArgs e)
        {
            tb_CssController.Text = cssExtendedList1.Value;
        }
    }
}
